Editing the new .lsd file

Editing parameters
Caution!
The

.lsd file contains parameters that are used by SNiFF+ to map the language constructs in your language to those in C/C++. Before you begin modifying this part, there are a couple of things that you should keep in mind:

- Do not delete any of the parameters or add new parameters.
- Do not change the order of the parameters.
- There are a number of parameters that begin with

"res . Do not modify these parameters .
- Do not modify the parameter
"User Defined Symbol" :"UserDef" . This parameter is used by SNiFF+ for your user-defined symbols. SNiFF+ automatically knows what type of language construct a user-defined symbol is when your parser comes across the user-defined symbol and calls the semantic action function User-defined symbol .
- There is no limit to the length of names and abbreviations that you give to language constructs in your language. However, we suggest that you keep them short. Note that all names and abbreviations must be alphanumeric strings (without any tabs or spaces separating characters of a string).
Parameters
In the list of parameters, you can see the parameter that determines the name of the entry in the Language drop-down menu (e.g., in the Symbol Browser) for your language:
"Language Name" :"Ansi C/C++"

- By default, the name of the entry in the Language drop-down menu is Ansi C/C++. Change the name of this entry to the name of the your language.
- The remaining parameters in the parameter list refer to the names and abbreviations of the language constructs in your language. Let's look at one of these parameters:

"Enum" :"enum"
- The string in quotes in the first column refers to the C/C++ language construct (here:
Enum ). Do not modify this string.
- The string in quotes in the second column specifies how the C/C++ language construct is mapped to a language construct in your language. Replace this string with the name of a language construct in your language.
- You may not need to use all of the parameters in the parameter list. For those parameters that you do not need, replace the second string in quotes with
--empty-- .
For example, when SNiFF+ comes across the following parameter, it will ignore it:
"Const" :"--empty--"
There are a number of parameters that begin with "Short of . These parameters specify the abbreviated names of language constructs. For example, the abbreviated name of the C/C++ language construct Enum is en , as specified in the following parameter:
"Short of Enum" :"en"
Abbreviations of language constructs are used in the Cross Referencer tool.

- Select an abbreviation for those language constructs in your language that either reference or are referenced by other language constructs.
- Save the file. The parameters in the file will become effective the next time you launch SNiFF+.